package net.xdclass.service;

import net.xdclass.model.CouponDO;
import com.baomidou.mybatisplus.extension.service.IService;
import net.xdclass.request.NewUserCouponRequest;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 孙浩
 * @since 2022-04-20
 */
public interface CouponService extends IService<CouponDO> {

  Map<String, Object> pageCouponActivity(Integer page, Integer size);

  void addCoupon(String couponId, String couponCategory);

  /**
   * 新用户注册发放优惠券
   * @param newUserCouponRequest
   */
  void initNewUserCoupon(NewUserCouponRequest newUserCouponRequest);
}
